treelistmodel: Refactor to add GtkTreeListRow
authorBenjamin Otte <otte@redhat.com>
Sat, 1 Sep 2018 02:59:06 +0000 (04:59 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 16 Sep 2018 16:50:17 +0000 (18:50 +0200)
commit4b5fb5ec7999e473064afacb107f99438b3a4eed
tree24d12485fdeb44e61ea8791a73b017b079d0d118
parent4f70f7234997bcb6ae91bbaaa277c573fc17b414
treelistmodel: Refactor to add GtkTreeListRow

This patch does multiple things:

1. Add a custom persistent per-row object.
2. Move all per-row API to that object. This means notifications are now
   possible.
3. Add a "passthrough" construct-only property to the TreeListModel that
   influences if the model returns these new object or passes through
   the ones from the model.

This greatly simplifies the code needed to be written for widgetry,
because one can just connect the per-row object to the expanders that
expand and collapse rows.

As an added power feature, these objects can also be passed through
further models (like filter models).

It also adds kind of a hack to Adwaita to make the test look neat.
gtk/gtktreelistmodel.c
gtk/gtktreelistmodel.h
gtk/theme/Adwaita/_common.scss
tests/testtreelistmodel.c
testsuite/gtk/notify.c
testsuite/gtk/treelistmodel.c